package cn.com.oceansoft.modules.profile.persistence;

import cn.com.oceansoft.modules.profile.entity.SysUser;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * cn.com.oceansoft.modules.profile.persistence.SysUserMapper
 *
 * @author chenw
 * @create 16/4/27.19:40
 * @email javacspring@hotmail.com
 */
@Repository
public interface SysUserMapper {

    SysUser findById(@Param("id") String id);

    @Select("select * from t_sys_user where login_id=#{loginId} and u_pwd=#{password}")
    SysUser findByLoginIdAndPwd(
            @Param("loginId") String loginId,
            @Param("password") String password);
}
